import { GaRegExp, ruleInject, ruleInjectable } from "../InjectionRule";
import { MakeListRule } from "../methods/make-list";

@ruleInjectable()
export default class variableListRule extends GaRegExp {

	@ruleInject() private variableNameRule!: GaRegExp;

	public RuleInit() {
		this.ParseRule([
			this.Supply("VAR_LIST"),
			"\\[", ...MakeListRule([this.variableNameRule]), "\\]",
		]);
	}

}
